package xyz.hubery.service;

import xyz.hubery.domain.UserBank;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.hubery.dto.UserBankDTO;
import xyz.hubery.vo.BindBankRequest;

public interface UserBankService extends IService<UserBank>{


    /**
     * 查询用户的银行卡
     * @param userId
     * @return
     */
    UserBank geyByUserId(Long userId);

    /**
     * 绑定银行卡
     * @param userId 用户id
     * @param bankRequest 银行卡信息
     * @return
     */
    boolean addUserBank(Long userId, BindBankRequest bankRequest);

}
